import { request } from "@/utils/request.js";

// 获取用户信息
const getUserInfo = (params) => {
  return request({
    url: "usercenterindexinfo",
    method: "post",
    data: params,
  },false);
};

// 获取用户信息
const getUsere = (params) => {
  return request({
    url: "myinfodetail",
    method: "post",
    data: params,
  },false);
};

const myfavlist = (params) => {
  return request({
    url: "myfavlist",
    method: "post",
    data: params,
  },false);
};
// wxphone/postPhone.php
const postPhone = (params) => {
  return request({
    url: "wxapigetphonenumber",
    method: "post",
    data: params,
  },false);
};
// usercenteramthistory
const usercenteramthistory = (params) => {
  return request({
    url: "usercenteramthistory",
    method: "post",
    data: params,
  },false);
};

// usercenteramtout
const usercenteramtout = (params) => {
  return request({
    url: "usercenteramtout",
    method: "post",
    data: params,
  },false);
};

// couponlist
const couponlist = (params) => {
  return request({
    url: "couponlist",
    method: "post",
    data: params,
  },false);
};
// const = () 
// myinfosave
const myinfosave = (params) => {
  return request({
    url: "myinfosave",
    method: "post",
    data: params,
  },false);
};
// mycouponsave
const mycouponsave = (params) => {
  return request({
    url: "mycouponsave",
    method: "post",
    data: params,
  },false);
};
// mycouponlist
const mycouponlist = (params) => {
  return request({
    url: "mycouponlist",
    method: "post",
    data: params,
  },false);
};
// 充值
// myvippayment
const myvippayment = (params) => {
  return request({
    url: "myvippayment",
    method: "post",
    data: params,
  },false);
};
const myvipindex = (params) => {
  return request({
    url: "myvipindex",
    method: "post",
    data: params,
  },false);
};
// wxvipquery
const wxvipquery = (params) => {
  return request({
    url: "wxvipquery",
    method: "post",
    data: params,
  },false);
};
//msyjshkey
const msyjshkey = (params) => {
  return request({
    url: "msyjshkey",
    method: "get"
  },false);
};
// mycollchatlist
const mycollchatlist = (params) => {
  return request({
    url: "mycollchatlist",
    method: "get",
    data: params,
  },false);
};
module.exports = {
  getUserInfo,
  getUsere,
  myfavlist,
  postPhone,
  usercenteramthistory,
  usercenteramtout,
  couponlist,
  myinfosave,
  mycouponsave,
  mycouponlist,
  myvippayment,
  myvipindex,
  wxvipquery,
  mycollchatlist,
  msyjshkey
};
